# -*- coding: utf-8 -*-
from django.db import models
from datetime import datetime 
 
class Job(models.Model):
    name = models.CharField("职位名称", max_length = 100, blank=True)
    desc = models.TextField("职位描述", blank=True)
    years = models.CharField("年龄", max_length = 50, blank=True)
    money = models.CharField("月薪", max_length = 50, blank=True)
    school = models.CharField("学历", max_length = 50, blank=True)
    exper = models.CharField("工作经验", max_length = 50, blank=True)
    liangdian = models.CharField("亮点", max_length = 200, blank=True)
    dated = models.CharField("发布日期", max_length = 50, blank=True)
    number = models.CharField("招聘人数", max_length = 50, blank=True)
    address = models.CharField("工作地址", max_length = 200, blank=True)
    company_id = models.CharField("公司ID", max_length = 100, blank=True)
    url = models.CharField("工作url", max_length = 200, blank=True)
    create_time = models.DateTimeField('创建时间', default=datetime.now())
    is_runned =models.IntegerField(default=0)
    
class Company(models.Model):
    name = models.CharField("公司名称", max_length = 100, blank=True)
    typs = models.CharField("公司类型", max_length = 50, blank=True)
    industry = models.CharField("公司行业", max_length = 50, blank=True)
    size = models.CharField("公司规模", max_length = 50, blank=True)
    profile = models.CharField("公司简介", max_length = 1000, blank=True)
    url = models.CharField("公司url", max_length = 200, blank=True)
    platform = models.CharField("平台平源", max_length = 20, blank=True)
    email = models.CharField("邮箱", max_length = 50, blank=True)
    phone = models.CharField("联系方式", max_length = 100, blank=True)
    area = models.CharField("分区", max_length = 50, blank=True)
    address = models.CharField("地址", max_length = 100, blank=True)
    web = models.CharField("官方网址", max_length = 100, blank=True)
    create_time = models.DateTimeField('创建时间', default=datetime.now())
    is_runned = models.IntegerField(default=0)
